<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="common/header :: header">
    <meta charset="UTF-8">
    <title>职位详情 - 企业招聘管理系统</title>
</head>
<body>
    <div class="container mt-4">
        <div class="card">
            <div class="card-header d-flex justify-content-between align-items-center">
                <h5 class="mb-0">职位详情</h5>
                <div>
                    <a th:href="@{'/job/edit/' + ${job.id}}" class="btn btn-primary">编辑</a>
                    <a href="/job/list" class="btn btn-secondary">返回列表</a>
                </div>
            </div>
            <div class="card-body">
                <div class="row mb-3">
                    <div class="col-md-6">
                        <h5 class="card-title" th:text="${job.title}">职位名称</h5>
                        <p class="card-text">
                            <strong>部门：</strong>
                            <span th:text="${job.department}">部门</span>
                        </p>
                        <p class="card-text">
                            <strong>薪资范围：</strong>
                            <span th:text="${job.salaryMin + '-' + job.salaryMax + 'K'}">薪资范围</span>
                        </p>
                        <p class="card-text">
                            <strong>状态：</strong>
                            <span th:text="${job.status == 'OPEN' ? '招聘中' : '已关闭'}">状态</span>
                        </p>
                    </div>
                    <div class="col-md-6">
                        <p class="card-text">
                            <strong>创建时间：</strong>
                            <span th:text="${#temporals.format(job.createTime, 'yyyy-MM-dd HH:mm')}">创建时间</span>
                        </p>
                        <p class="card-text">
                            <strong>更新时间：</strong>
                            <span th:text="${#temporals.format(job.updateTime, 'yyyy-MM-dd HH:mm')}">更新时间</span>
                        </p>
                    </div>
                </div>
                <div class="row">
                    <div class="col-12">
                        <h6>职位描述</h6>
                        <p class="card-text" th:text="${job.description}">职位描述</p>
                    </div>
                </div>
                <div class="row mt-3">
                    <div class="col-12">
                        <h6>任职要求</h6>
                        <p class="card-text" th:text="${job.requirements}">任职要求</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html> 